using namespace std;
int n=0;
class Student
	{
	private:
		char nume[10];
		char pren[10];
		int nr_matr;
	public: 
		Student();
		Student(char s[10],char p[10],int n);
		void setNume(char s[10]);
		void setPren(char s[10]);
		void setNrMat(int s);
		char* getNume();
		char* getPren();
		int getNrMat();
		Student operator = (Student B);
	friend ostream& operator<<(ostream& cout,Student B);
	};
class listaSt
	{
	public:
		Student M[30];
	public:
		listaSt();
		void adauga(Student A);
		void sterge(char nume[10]);
		void sterge(int b);
		int cauta(char b[10]);
		int caut(char b[10]);
		int cauta(int b);
		void sorteaza();
	  void modificaNume();
		void modificaPren();
		void modificaNr();
	friend ostream& operator<<(ostream& cout,listaSt B);
	};

